package com.hmall.api.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;

/**
 * Description:
 *
 * @Author MaYuHan
 */
@FeignClient("cart-service")
public interface CartClient {
    /**
     * 批量删除商品
     *
     * @param itemIds 商品id集合
     */
    @DeleteMapping("/carts")
    void deleteCartItemByIds(@RequestParam("ids") Collection<Long> ids);
}
